home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / syntax / exports.vim < prev    next >
Encoding:
Text File  |  2001-05-09  |  2.0 KB  |  69 lines

  1. " Vim syntax file
  2. " Language:    exports
  3. " Maintainer:    Dr. Charles E. Campbell, Jr. <Charles.E.Campbell.1@gsfc.nasa.gov>
  4. " Last Change:    May 18, 1998
  5. " Notes:        This file includes both SysV and BSD 'isms
  6.  
  7. " For version 5.x: Clear all syntax items
  8. " For version 6.x: Quit when a syntax file was already loaded
  9. if version < 600
  10.   syntax clear
  11. elseif exists("b:current_syntax")
  12.   finish
  13. endif
  14.  
  15. " Options: -word
  16. syn keyword exportsKeyOptions contained    alldirs    nohide    ro    wsync
  17. syn keyword exportsKeyOptions contained    kerb    o    rw
  18. syn match exportsOptError contained    "[a-z]\+"
  19.  
  20. " Settings: word=
  21. syn keyword exportsKeySettings contained    access    anon    root    rw
  22. syn match exportsSetError contained    "[a-z]\+"
  23.  
  24. " OptSet: -word=
  25. syn keyword exportsKeyOptSet contained    mapall    maproot    mask    network
  26. syn match exportsOptSetError contained    "[a-z]\+"
  27.  
  28. " options and settings
  29. syn match exportsSettings    "[a-z]\+="  contains=exportsKeySettings,exportsSetError
  30. syn match exportsOptions    "-[a-z]\+"  contains=exportsKeyOptions,exportsOptError
  31. syn match exportsOptSet    "-[a-z]\+=" contains=exportsKeyOptSet,exportsOptSetError
  32.  
  33. " Separators
  34. syn match exportsSeparator    "[,:]"
  35.  
  36. " comments
  37. syn match exportsComment    "^\s*#.*$"
  38.  
  39. " Define the default highlighting.
  40. " For version 5.7 and earlier: only when not done already
  41. " For version 5.8 and later: only when an item doesn't have highlighting yet
  42. if version >= 508 || !exists("did_exports_syntax_inits")
  43.   if version < 508
  44.     let did_exports_syntax_inits = 1
  45.     command -nargs=+ HiLink hi link <args>
  46.   else
  47.     command -nargs=+ HiLink hi def link <args>
  48.   endif
  49.  
  50.   HiLink exportsKeyOptSet    exportsKeySettings
  51.   HiLink exportsOptSet    exportsSettings
  52.  
  53.   HiLink exportsComment    Comment
  54.   HiLink exportsKeyOptions    Type
  55.   HiLink exportsKeySettings    Keyword
  56.   HiLink exportsOptions    Constant
  57.   HiLink exportsSeparator    Constant
  58.   HiLink exportsSettings    Constant
  59.  
  60.   HiLink exportsOptError    Error
  61.   HiLink exportsOptSetError    Error
  62.   HiLink exportsSetError    Error
  63.  
  64.   delcommand HiLink
  65. endif
  66.  
  67. let b:current_syntax = "exports"
  68. " vim: ts=10
  69.